package com.example.ysdt.service.impl;

import com.example.ysdt.Vo.CategoryVo;
import com.example.ysdt.Vo.ProductVo;
import com.example.ysdt.entiey.Product;
import com.example.ysdt.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private com.example.ysdt.mapper.ProductMapper productMapper;

    @Override
    public void createProduct(Product product) {
        productMapper.createProduct(product);
    }

    @Override
    public List<Product> queryProduct(ProductVo productVo) {
        return productMapper.queryProduct(productVo);
    }

    @Override
    public void deleteProduct(ProductVo productVo) {
        productMapper.deleteProduct(productVo);
    }

    @Override
    public void productUpdate(ProductVo productvo) {
        productMapper.productUpdate(productvo);
    }

}
